package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

import javax.persistence.*;
import java.util.Date;

@Data
@Alias(value = "dmcPhoneZone")
@Table(name = "cn_dmc_phone_zone")
@EqualsAndHashCode(callSuper = true)
public class DmcPhoneZone extends BaseEntity {

    private static final long serialVersionUID = -5544565049891281878L;

    /**
     * 设备Id
     */
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 电话机防区编号
     */
    @Column(name = "zone_no")
    private String zoneNo;

    /**
     * 电话机防区类型
     */
    @Column(name = "zone_type")
    private Integer zoneType;

    /**
     * 防区是否有声 0-无声 1-有声
     */
    @Column(name = "zone_sound")
    private Integer zoneSound;

    /**
     * 防区是否延时 0-不延时 1-延时
     */
    @Column(name = "zone_delay")
    private Integer zoneDelay;

    /**
     * 防区是否周界 0-不周界 1-周界
     */
    @Column(name = "zone_world")
    private Integer zoneWorld;

    /**
     * 防区是否门铃 0-不门铃 1-门铃
     */
    @Column(name = "zone_bell")
    private Integer zoneBell;

    /**
     * 防区是否紧急 0-不紧急 1-紧急
     */
    @Column(name = "zone_urgent")
    private Integer zoneUrgent;

    /**
     * 绑定方式 0-自定义 1-老人 2-床位 3-房间
     */
    @Column(name = "bind_type")
    private Integer bindType;

    /**
     * 床位Id
     */
    @Column(name = "bed_id")
    private Integer bedId;

    /**
     * 房间Id
     */
    @Column(name = "room_id")
    private Integer roomId;

    /**
     * 老人Id
     */
    @Column(name = "oldman_id")
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 防区位置
     */
    private String location;

}